const express = require('express');
const bodyParser = require('body-parser');
const template = require('art-template')

const app = express();

app.use(express.static('public'));
app.use(bodyParser.urlencoded({extended: false}));

template.config('cache',false);
app.engine('html',template.__express);
app.set('view engine', 'html');

app.use('/',require('./routes/index.js'));

app.listen(3000,function(){
    console.log('Server is running...Please visited http://localhost:3000/');
})